<div class="actions" style="width:300px ;padding-left: 100px; margin-top: 200px; margin-left: auto;margin-right:auto;">
  <% if flash[:notice] %>
      <p style="color: #339BB9"><%= flash[:notice] %></p>
  <% end %>
  <% if flash[:error] %>
      <p style="color: #C43C35"><%= flash[:error] %></p>
  <% end %>
  <% if !flash[:error]&&!flash[:notice] %>
      <p style="color: #339BB9">请输入密码,然后按下回车.</p>
  <% end %>
  <script type="text/javascript">
      $(document).ready(function() {
          $("#pw").focus();
      });
  </script>
  <form action="/dologin" method="get">
    <input type="hidden" name="url" value="<%= params[:url] %>"/>
    <input id="pw" type="password" name="p" size="20"/>
  </form>
</div>